#include "vector.h"
#include "math.h"

Vector::Vector()
{
    this->x=0;
    this->y=0;
    this->t=0;

}

Vector::Vector(double x, double y, double t)
{
    this->x = x;
    this->y = y;
    this->t = t;
}
Vector::Vector(const Vector& other)
{
    this->x = other.x;
    this->y = other.y;
    this->t = other.t;
}
Vector& Vector::operator=(const Vector& other){
    this->x = other.x;
    this->y = other.y;
    this->t = other.t;
    return (*this);
}
Vector Vector::operator*(const Vector & other)
{
    return Vector (this->x*other.x, this->y*other.y, t);
}
Vector Vector::operator*(double escalar)
{
   return Vector (this->x*escalar, this->y*escalar, t);
}
Vector Vector::operator/(const Vector& other)
{

   return Vector (this->x/other.x, this->y/other.y, t);
}
Vector Vector::operator/(double escalar)
{
    return this->operator *(1/escalar);
}
Vector Vector::operator-(const Vector& other)
{
    return Vector (this->x-other.x, this->y-other.y, t);
}
Vector Vector::operator+(const Vector & other)
{
    return Vector (this->x+other.x, this->y+other.y, t);
}
